const setting = {
  state: {
    // 配置是否展开左侧菜单栏
    lySidebar: {
      open: true
    },
    // 配置是否展示价格
    isShowPrice: false
  },
  getters: {},
  mutations: {
    CLOSE_SIDEBAR: (state, view) => {
      state.lySidebar.open = view
    },
    TOGGLE_SIDEBAR: state => {
      state.lySidebar.open = !state.lySidebar.open
      state.stickyClass = state.lySidebar.open ? 'stiky_min' : 'stiky_max'
    }
  },
  actions: {
    closeSideBar({ commit }, { open }) {
      console.log(open)
      commit('CLOSE_SIDEBAR', open)
    },
    toggleSideBar({ commit }) {
      commit('TOGGLE_SIDEBAR')
    }
  }
}
export default setting
